﻿@{
    ViewBag.Title = "Home Page";
}
<h2>@ViewBag.Message</h2>
<p>
    To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">
        http://asp.net/mvc</a>.
</p>
@Html.ActionLink("english", Request.RequestContext.RouteData.Values.ElementAt(2).Value.ToString(), new { language = "en-US" })
<br />
@Html.ActionLink("български", Request.RequestContext.RouteData.Values.ElementAt(2).Value.ToString(), new { language = "bg-BG" })
<br />
<br />
<br />
<script type="text/javascript">
    var myEditor = new YAHOO.widget.Editor('msgpost', {
        height: '300px',
        width: '522px',
        dompath: true, //Turns on the bar at the bottom
        animate: true //Animates the opening, closing and moving of Editor windows        
    });
    myEditor.render();
    
</script>
@using (Html.BeginForm("Test", "Home", FormMethod.Post, null))
{
    <div class="yui-skin-sam">
        <textarea name="msgpost" id="msgpost" cols="50" rows="10">
    <strong>Your</strong> HTML <em>code</em> goes here.<br>
    This text will be pre-loaded in the editor when it is rendered.
    </textarea>
    </div>

    <div>
        <input type="submit" /></div>
}
